Removing Duplicate Elements of an Array